package com.base.pd.agent;

public class AgentTFT extends Agent {

	private boolean nextMove ; 
	
	public AgentTFT() {
		super("Tit For Tat", "Developed by MADinow");
	}

	@Override
	public boolean cooperate() {
		return this.nextMove;
	}

	@Override
	public void update(int round, boolean myMove, boolean otherMove,
			int myScore, int otherScore) {
		this.nextMove = otherMove ; 
	}

	@Override
	public void init() {
		this.nextMove = true ; 
	}

}
